module.exports = async(ctx, next) => {
    var start = Date().now
    await next()
    var end = Date().now
    var duration = end - start
    ctx.set('X-Response-Time', duration + 'ms')
} 